package co.fitstart.scheduler.entity;

import java.util.Date;

public class FreezedCourseRound {
    
    private Long courseRoundId;
    
    private Date effectiveEnd;
    
    private Date holdDate;
    
    /**
     * 
     */
    public FreezedCourseRound() {
        
    }
    
    /**
     * 
     * @return
     */
    public Date calculateEffectiveEnd() {
        return new Date(new Date().getTime() + this.effectiveEnd.getTime() - this.holdDate.getTime());
    }

    /**
     * @return the courseRoundId
     */
    public Long getCourseRoundId() {
        return courseRoundId;
    }

    /**
     * @return the effectiveEnd
     */
    public Date getEffectiveEnd() {
        return effectiveEnd;
    }

    /**
     * @return the holdDate
     */
    public Date getHoldDate() {
        return holdDate;
    }

    /**
     * @param courseRoundId the courseRoundId to set
     */
    public void setCourseRoundId(Long courseRoundId) {
        this.courseRoundId = courseRoundId;
    }

    /**
     * @param effectiveEnd the effectiveEnd to set
     */
    public void setEffectiveEnd(Date effectiveEnd) {
        this.effectiveEnd = effectiveEnd;
    }

    /**
     * @param holdDate the holdDate to set
     */
    public void setHoldDate(Date holdDate) {
        this.holdDate = holdDate;
    }


}
